package com.googlecode.afx.view.validation;

import javafx.scene.Node;

/**
 * Validation item holding a single validation error.
 * 
 * @author MartinKoster
 *
 */
public class ValidationItem  {

	private String message;
	
	private Node affectedNode;

	public ValidationItem(String message, Node affectedNode) {
		this.message = message;
		this.affectedNode = affectedNode;
	}
	
	public ValidationItem(String message) {
		this(message, null);
	}

	public Node getAffectedNode() {
		return affectedNode;
	}

	public void setAffectedNode(Node affectedNode) {
		this.affectedNode = affectedNode;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}	
}
